package org.example.demo3.demos.web.enums;

public enum FpztEnum {
    NORMAL("0","正常"),
    VOID("2","作废"),
    RED_FLUSH("3","已红冲"),
    PARTIAL_RED_FLUSH("7","部分红冲"),
    FULL_RED_OFFSET("8","全部红冲");
    private final String key;
    private  final String value;
    FpztEnum(String key,String value){
        this.key = key;
        this.value = value;
    }

    public String getKey() {
        return key;
    }
    public String getValue() {
        return value;
    }
    public  static Boolean isIncludes(String key){
        for (FpztEnum value : FpztEnum.values()) {
            if(value.getKey().equals(key)){
                return true;
            }
        }
        return  false;
    }
    public static String getValueBykey (String key){
        for (FpztEnum value : FpztEnum.values()) {
            if(value.getKey().equals(key)){
                return  value.getValue();
            }
        }
        return  "";
    }
}































